<!DOCTYPE html>
<html class="no-js" lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <title>装修招标_免费装修设计_免费装修报价 - 金蚂蚁装修网</title>
    <meta name="description" content="金蚂蚁装修网是专业的家装、公装项目招标平台，业主可以在金蚂蚁装修网免费发布装修招标，多套免费装修方案设计PK，让装修省钱省力更省心!"/>
    <meta name="keywords" content="装修招标,免费设计与报价,装修网"/>
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <link rel="shortcut icon" href="http://www.zxjmy.com/static/images/icon/logo.ico">

    <!--<meta name="renderer" content="webkit">-->

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/header.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/footer.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/online_design.css">
    <script src="__PUBLIC__/js/jquery-1.2.6.min.js"></script>
    <script src="__PUBLIC__/js/header.js"></script>

    <script>

        (function(){
            var bp = document.createElement('script');
            var curProtocol = window.location.protocol.split(':')[0];
            if (curProtocol === 'https') {
                bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
            }
            else {
                bp.src = 'http://push.zhanzhang.baidu.com/push.js';
            }
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(bp, s);
        })();
    </script>
</head>
<body>
<div class="headk">
    <div class="head">
        <div class="floatleft">您好<a href="__MODULE__/Usercenter/index"><b style="color:red;">{$_SESSION["username"]}</b></a>，欢迎来到金蚂蚁装修网！<span>{$data}<a href="{:U('Home/City/index')}">【切换】</a></span></div>
        <div class="floatright">
        <?php 
if($_SESSION["cid"]){?>
   <a href="__MODULE__/Usercenter/index"><b style="color:red;">进入个人中心</b></a> | <a href="__MODULE__/Yuyue/layout">注销</a>
<?php }else{ ?>
<!--<a href="{:U('Home/Login/index')}">您还未登陆,点击登陆</a>-->
<!--<?php }?>-->
            <!--|<a href="{:U('Home/Register/ownreg')}">个人注册</a>|<a href="{:U('Home/Register/comreg')}">装修公司注册</a>-->
            <!--|<a href="{:U('Zxwd/index')}">装修问答</a>|-->
            <span>服务热线:400-0606-129</span>
        </div>
    </div>
</div>
<div class="topbigdiv" bigheight="132" smallheight="103">
    <div class="top">
        <div class="logo">
            <a href="http://www.zxjmy.com">
                <img
                        src="__PUBLIC__/images/logo.png"
                        height="90">
            </a>
        </div>
        <include file="Public:read"/>
    </div>
</div>
<div class="topbigdivbg"></div>
<section>
    <div class="banner">
        <form class="invite-form" id="banner-invite-form" novalidate="novalidate">
            <div class="con_bj_cal col_l" id="tender-video-form">
                <h3 class="calputer_tit">预约免费量房设计</h3>
                <form id="new_base_info">
                    <div class="mod_form bj_form">
                        <div class="form_line">

                            <div class="element">
                                <div class="zcityGroup" city-range="{'level_start':1,'level_end':3}" city-ini="" zcity-id="zcity0"><div class="zcityItem" item-level="1"><div class="zcityItem-head"><input type="text" class="currentValue" readonly="" value="" placeholder="请选择"></div><div class="zcityItem-main" style="width: 117px; left: 0px; top: 40px;"><div class="cityContainer"><div class="cityTips">请选择</div><ul class="citylist"><li class="cityitem" values="北京">北京</li><li class="cityitem" values="上海">上海</li><li class="cityitem" values="天津">天津</li><li class="cityitem" values="重庆">重庆</li><li class="cityitem" values="河北">河北</li><li class="cityitem" values="山西">山西</li><li class="cityitem" values="河南">河南</li><li class="cityitem" values="辽宁">辽宁</li><li class="cityitem" values="吉林">吉林</li><li class="cityitem" values="黑龙江">黑龙江</li><li class="cityitem" values="内蒙古">内蒙古</li><li class="cityitem" values="江苏">江苏</li><li class="cityitem" values="山东">山东</li><li class="cityitem" values="安徽">安徽</li><li class="cityitem" values="浙江">浙江</li><li class="cityitem" values="湖北">湖北</li><li class="cityitem" values="福建">福建</li><li class="cityitem" values="广东">广东</li><li class="cityitem" values="湖南">湖南</li><li class="cityitem" values="江西">江西</li><li class="cityitem" values="广西">广西</li><li class="cityitem" values="海南">海南</li><li class="cityitem" values="四川">四川</li><li class="cityitem" values="云南">云南</li><li class="cityitem" values="贵州">贵州</li><li class="cityitem" values="陕西">陕西</li><li class="cityitem" values="西藏">西藏</li><li class="cityitem" values="青海">青海</li><li class="cityitem" values="甘肃">甘肃</li><li class="cityitem" values="新疆">新疆</li><li class="cityitem" values="宁夏">宁夏</li><li class="cityitem" values="台湾">台湾</li><li class="cityitem" values="香港">香港</li><li class="cityitem" values="澳门">澳门</li><li class="cityitem" values="钓鱼岛">钓鱼岛</li></ul></div></div></div><div class="zcityItem" item-level="2"><div class="zcityItem-head"><input type="text" class="currentValue" readonly="" value="" placeholder="请选择"></div><div class="zcityItem-main" style="width: 120px; left: 0px; top: 40px;"><div class="cityContainer"><div class="cityTips">请选择</div><ul class="citylist"><li class="cityitem" values="北京">北京</li></ul></div></div></div><div class="zcityItem" item-level="3"><div class="zcityItem-head"><input type="text" class="currentValue" readonly="" value="" placeholder="请选择"></div><div class="zcityItem-main"><div class="cityContainer"><div class="cityTips">请选择</div><ul class="citylist"><li class="cityitem" values="大兴区">大兴区</li><li class="cityitem" values="房山区">房山区</li><li class="cityitem" values="通州区">通州区</li><li class="cityitem" values="怀柔区">怀柔区</li><li class="cityitem" values="顺义区">顺义区</li><li class="cityitem" values="密云区">密云区</li><li class="cityitem" values="平谷区">平谷区</li><li class="cityitem" values="东城区">东城区</li><li class="cityitem" values="崇文区">崇文区</li><li class="cityitem" values="海淀区">海淀区</li><li class="cityitem" values="西城区">西城区</li><li class="cityitem" values="朝阳区">朝阳区</li><li class="cityitem" values="石景山区">石景山区</li><li class="cityitem" values="门头沟">门头沟</li><li class="cityitem" values="宣武区">宣武区</li><li class="cityitem" values="丰台区">丰台区</li><li class="cityitem" values="延庆县">延庆县</li><li class="cityitem" values="昌平区">昌平区</li></ul></div></div></div></div>
                                <div class="form_error"><em class="ico_error"></em>请选择地区</div>
                            </div>
                        </div>
                        <div class="form_line">

                            <div class="element">
                                <div class="text_wrap">
                                    <input type="text" class="text area_text" name="area" id="area" placeholder="输入您的房屋面积">
                                    <!--<em class="text_lbl">输入您的房屋面积</em>-->
                                    <em class="unit" style="color: black;">m²</em>
                                    <div class="form_error"><em class="ico_error"></em>请输入建筑面积</div>
                                </div>
                                <p class="text_area">* 输入面积小于30㎡时，报价结果按30㎡计算</p>
                            </div>
                        </div>

                        <div class="form_line">

                            <div class="element">
                                <div class="clear">
                                    <select name="shi" id="shi" class="select select_s select_s_s col_l">
                                        <option value="1室">1室</option>
                                        <option value="2室">2室</option>
                                        <option value="3室">3室</option>
                                        <option value="4室">4室</option>
                                        <option value="5室">5室</option>
                                        <option value="6室">6室</option>
                                    </select>
                                    <select name="ting" id="ting" class="select select_s select_s_s col_l">
                                        <option value="1厅">1厅</option>
                                        <option value="2厅">2厅</option>
                                        <option value="3厅">3厅</option>
                                        <option value="4厅">4厅</option>
                                        <option value="5厅">5厅</option>
                                        <option value="6厅">6厅</option>
                                    </select>
                                    <select name="chu" id="chu" class="select select_s select_s_s col_l">
                                        <option value="1厨">1厨</option>
                                        <option value="2厨">2厨</option>
                                        <option value="3厨">3厨</option>
                                    </select>
                                    <select name="wei" id="wei" class="select select_s col_l">
                                        <option value="1卫">1卫</option>
                                        <option value="2卫">2卫</option>
                                        <option value="3卫">3卫</option>
                                        <option value="4卫">4卫</option>
                                        <option value="5卫">5卫</option>
                                        <option value="6卫">6卫</option>
                                    </select>
                                    <select name="yangtai" id="yangtai" class="select select_s col_l">
                                        <option value="1阳台">1阳台</option>
                                        <option value="2阳台">2阳台</option>
                                        <option value="3阳台">3阳台</option>
                                        <option value="4阳台">4阳台</option>
                                        <option value="5阳台">5阳台</option>
                                        <option value="6阳台">6阳台</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="form_line" id="phoneInput">

                            <div class="element">

                                <div class="text_wrap">
                                    <input type="text" class="text" name="mobile" id="mobile" placeholder="请输入您的联系方式"    >
                                    <div class="form_error"><em class="ico_error"></em>请输入正确的手机号</div>
                                </div>

                            </div>
                        </div>
                        <div class="submit-btn-box">
                            <a class="submit-btn expose-stream" id="calc_btn" href="javascript:void(0);" searchtage="1_2_2_21" data-expose="true">
                                立即预约
                            </a>
                        </div>
                    </div>
                </form>
            </div>
        </form>
        <script>
            $('#calc_btn').click(function () {
                var huxing=$("#shi").val()+$("#ting").val()+$("#chu").val()+$("#wei").val()+$("#yangtai").val();

                var a = $('.zcityGroup').find('.currentValue')
                var city=a.eq(1).val();
                var province=a.eq(0).val();
                var mobile=$("#mobile").val();
                var area=$("#area").val();
                console.log(province,huxing,city,mobile,area)
                if(city==''){
                    alert('请选择您的所在城市！')
                    return false;
                }else if(!mobile.match(/^1[0-9]{10}$/)){
                    alert('请输入正确的手机号码！')
                    return false;
                }else if(area == ''){
                    alert('请输入您的房屋面积！')
                    return false;
                }
                $.ajax({
                    type: "POST",
                    dataType: 'json',
                    url: '{:U("Home/Yuyue/add")}',
                    data: {
                        province:province,
                        huxing:huxing,
                        city:city,
                        mobile:mobile,
                        area:area
                    },
                    success: function (data) {
                        if(data.msg==1){
                            alert("预约成功")
                            window.location.reload();
                        }
                    },
                    error: function () {

                    }

                })

            })

        </script>
        <img alt="" src="__PUBLIC__/images/banner_design.jpg">
    </div>
</section>
<include file="Public:foot"/>
<script src="__PUBLIC__/js/zcity.js"></script>
<script>
    zcityrun('.zcityGroup');

</script>
</body>
</html>